<?php
/**
 * Collection of utility functions for arrays
 *
 * @package junction.utils
 * @author Alexander Schearer <aas11@duke.edu>
 */
class Utils_Arrays {
	
	/**
	 * Pop a given key out of an associative array
	 *
	 * @param key $key
	 * @param array $array
	 * @return unknown
	 */
	public static function pop_value($key, & $array) {
		$tmp = $array[$key];
		unset($array[$key]);
		return $tmp;
	}
}
?>